/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 停车位详情 GET /api/parkSpace/detail */
export async function detailUsingGet3({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET3Params;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResulttingcheweixiangqingVo>('/api/parkSpace/detail', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 停车位列表 GET /api/parkSpace/list */
export async function listUsingGet3({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.listUsingGET3Params;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultPageResulttingcheweiliebiaoVo>(
    '/api/parkSpace/list',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 停车位列表 GET /api/parkSpace/listAll */
export async function listUsingGet4({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.listUsingGET4Params;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultListtingcheweiliebiaoVo>(
    '/api/parkSpace/listAll',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
